package com.yserp.project.erp.store.outorder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yserp.project.erp.store.outorder.domain.OutOrderItem;
import com.yserp.project.erp.store.outorder.domain.OutOrderItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 商品出库单子Mapper接口
 *
 * @author yserp
 * @date 2022-07-13
 */
public interface OutOrderItemMapper extends BaseMapper<OutOrderItem> {
    /**
     * 通过仓库和销售单查询出库单列表
     *
     * @return
     */
    public List<OutOrderItemVo> selectOutOrderItemListBySaleOrder(@Param("orderId") Long orderId, @Param("warehouseId") Long warehouseId);

    /**
     * 通过仓库和生产领料查询出库单列表
     *
     * @return
     */
    public List<OutOrderItemVo> selectOutOrderItemListByProductOrder(@Param("orderId") Long orderId, @Param("warehouseId") Long warehouseId);

    /**
     * 通过仓库和出库单字子表查询出库单列表
     * @return
     */
    public List<OutOrderItemVo> selectOutOrderItemListByGoodIdAndWarehouseId(@Param("orderId") Long orderId, @Param("warehouseId") Long warehouseId);
}
